/**
 * 
 */
package kevin.study.zephyr.domain.dao.soda;

/**
 * 描述约束间的链接关系
 * 
 * @author Kevin.Huang
 * @createtime 2007-10-6
 */
public class ZConstraintLink {

	/**
	 * and时的类型为0
	 */
	public static final Integer TYPE_AND = 0;

	/**
	 * or时的类型为1
	 */
	public static final Integer TYPE_OR = 1;

	private Integer type;

	private ZConstraint zConstraint;

	protected ZConstraintLink(Integer type, ZConstraint constraint) {
		super();
		this.type = type;
		zConstraint = constraint;
	}

	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @return the zConstraint
	 */
	public ZConstraint getZConstraint() {
		return zConstraint;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * @param constraint
	 *            the zConstraint to set
	 */
	public void setZConstraint(ZConstraint constraint) {
		zConstraint = constraint;
	}

}
